<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.13.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TFontManager类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.13.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_t_font_manager-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">TFontManager类 参考</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<div class="dynheader">
类 TFontManager 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t_font_manager.png" usemap="#TFontManager_map" alt=""/>
  <map id="TFontManager_map" name="TFontManager_map">
<area href="class_t_emitter.html" alt="TEmitter" shape="rect" coords="0,0,95,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a6b721f7507ac20f267fe5cb0f2ed04d7" id="r_a6b721f7507ac20f267fe5cb0f2ed04d7"><td class="memItemLeft" align="right" valign="top"><a id="a6b721f7507ac20f267fe5cb0f2ed04d7" name="a6b721f7507ac20f267fe5cb0f2ed04d7"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TFontManager</b> (emitter_t *nativeObj)</td></tr>
<tr class="separator:a6b721f7507ac20f267fe5cb0f2ed04d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27081b069f54aa395f03d67d760582d7" id="r_a27081b069f54aa395f03d67d760582d7"><td class="memItemLeft" align="right" valign="top"><a id="a27081b069f54aa395f03d67d760582d7" name="a27081b069f54aa395f03d67d760582d7"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TFontManager</b> (const font_manager_t *nativeObj)</td></tr>
<tr class="separator:a27081b069f54aa395f03d67d760582d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b3a2932d8278a08adfd5525a78a2e68" id="r_a0b3a2932d8278a08adfd5525a78a2e68"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0b3a2932d8278a08adfd5525a78a2e68">SetStandardFontSize</a> (bool is_standard)</td></tr>
<tr class="separator:a0b3a2932d8278a08adfd5525a78a2e68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad73331695bdaf3ffbaec24d17dd67381" id="r_ad73331695bdaf3ffbaec24d17dd67381"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad73331695bdaf3ffbaec24d17dd67381">GetStandardFontSize</a> ()</td></tr>
<tr class="separator:ad73331695bdaf3ffbaec24d17dd67381"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8bfab6af70f1362d3b6abaa38af177f0" id="r_a8bfab6af70f1362d3b6abaa38af177f0"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8bfab6af70f1362d3b6abaa38af177f0">UnloadFont</a> (const char *name, font_size_t size)</td></tr>
<tr class="separator:a8bfab6af70f1362d3b6abaa38af177f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4cffca713fa0189985928ba83c86cdb" id="r_aa4cffca713fa0189985928ba83c86cdb"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa4cffca713fa0189985928ba83c86cdb">ShrinkCache</a> (uint32_t cache_size)</td></tr>
<tr class="separator:aa4cffca713fa0189985928ba83c86cdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76e951191090aa518b07594095baf8e5" id="r_a76e951191090aa518b07594095baf8e5"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a76e951191090aa518b07594095baf8e5">UnloadAll</a> ()</td></tr>
<tr class="separator:a76e951191090aa518b07594095baf8e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_t_emitter"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_methods_class_t_emitter')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_t_emitter.html">TEmitter</a></td></tr>
<tr class="memitem:a6ca92e86b5b1096926e6c1027391c8d9 inherit pub_methods_class_t_emitter" id="r_a6ca92e86b5b1096926e6c1027391c8d9"><td class="memItemLeft" align="right" valign="top">
&#160;</td><td class="memItemRight" valign="bottom"><b>TEmitter</b> (emitter_t *nativeObj)</td></tr>
<tr class="separator:a6ca92e86b5b1096926e6c1027391c8d9 inherit pub_methods_class_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1164e76c026d546bcd229514e1896be7 inherit pub_methods_class_t_emitter" id="r_a1164e76c026d546bcd229514e1896be7"><td class="memItemLeft" align="right" valign="top">
&#160;</td><td class="memItemRight" valign="bottom"><b>TEmitter</b> (const emitter_t *nativeObj)</td></tr>
<tr class="separator:a1164e76c026d546bcd229514e1896be7 inherit pub_methods_class_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f3943b7219c16dd7d171aaa66fad97e inherit pub_methods_class_t_emitter" id="r_a0f3943b7219c16dd7d171aaa66fad97e"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_emitter.html#a0f3943b7219c16dd7d171aaa66fad97e">Dispatch</a> (<a class="el" href="class_t_event.html">TEvent</a> &amp;e)</td></tr>
<tr class="separator:a0f3943b7219c16dd7d171aaa66fad97e inherit pub_methods_class_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa371beccbd4d2792db21f4da22049673 inherit pub_methods_class_t_emitter" id="r_aa371beccbd4d2792db21f4da22049673"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_emitter.html#aa371beccbd4d2792db21f4da22049673">DispatchSimpleEvent</a> (uint32_t type)</td></tr>
<tr class="separator:aa371beccbd4d2792db21f4da22049673 inherit pub_methods_class_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29404a7b2ca8b41b25d6442dfbf6863e inherit pub_methods_class_t_emitter" id="r_a29404a7b2ca8b41b25d6442dfbf6863e"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_emitter.html#a29404a7b2ca8b41b25d6442dfbf6863e">On</a> (uint32_t etype, event_func_t handler, void *ctx)</td></tr>
<tr class="separator:a29404a7b2ca8b41b25d6442dfbf6863e inherit pub_methods_class_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9cfdac85eba8396ffb90a2beea66d3f inherit pub_methods_class_t_emitter" id="r_ad9cfdac85eba8396ffb90a2beea66d3f"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_emitter.html#ad9cfdac85eba8396ffb90a2beea66d3f">Off</a> (uint32_t id)</td></tr>
<tr class="separator:ad9cfdac85eba8396ffb90a2beea66d3f inherit pub_methods_class_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d3788d19cabda5e7be335a8d6b713fb inherit pub_methods_class_t_emitter" id="r_a7d3788d19cabda5e7be335a8d6b713fb"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_emitter.html#a7d3788d19cabda5e7be335a8d6b713fb">Enable</a> ()</td></tr>
<tr class="separator:a7d3788d19cabda5e7be335a8d6b713fb inherit pub_methods_class_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab009db7ef16ca18fdf8eac10559501c0 inherit pub_methods_class_t_emitter" id="r_ab009db7ef16ca18fdf8eac10559501c0"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_emitter.html#ab009db7ef16ca18fdf8eac10559501c0">Disable</a> ()</td></tr>
<tr class="separator:ab009db7ef16ca18fdf8eac10559501c0 inherit pub_methods_class_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a67a712b6749c37f56c95e37fbcee92 inherit pub_methods_class_t_emitter" id="r_a0a67a712b6749c37f56c95e37fbcee92"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_emitter.html#a0a67a712b6749c37f56c95e37fbcee92">Destroy</a> ()</td></tr>
<tr class="separator:a0a67a712b6749c37f56c95e37fbcee92 inherit pub_methods_class_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:aaaa5d92ef5348548f498b967f63a59e2" id="r_aaaa5d92ef5348548f498b967f63a59e2"><td class="memItemLeft" align="right" valign="top"><a id="aaaa5d92ef5348548f498b967f63a59e2" name="aaaa5d92ef5348548f498b967f63a59e2"></a>
static <a class="el" href="class_t_font_manager.html">TFontManager</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (emitter_t *nativeObj)</td></tr>
<tr class="separator:aaaa5d92ef5348548f498b967f63a59e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add4ba635fe59a19eb685e29e1b3bbc73" id="r_add4ba635fe59a19eb685e29e1b3bbc73"><td class="memItemLeft" align="right" valign="top"><a id="add4ba635fe59a19eb685e29e1b3bbc73" name="add4ba635fe59a19eb685e29e1b3bbc73"></a>
static <a class="el" href="class_t_font_manager.html">TFontManager</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const emitter_t *nativeObj)</td></tr>
<tr class="separator:add4ba635fe59a19eb685e29e1b3bbc73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a807bea3f5ad545a3da470c4e56acc540" id="r_a807bea3f5ad545a3da470c4e56acc540"><td class="memItemLeft" align="right" valign="top"><a id="a807bea3f5ad545a3da470c4e56acc540" name="a807bea3f5ad545a3da470c4e56acc540"></a>
static <a class="el" href="class_t_font_manager.html">TFontManager</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (<a class="el" href="class_t_emitter.html">TEmitter</a> &amp;obj)</td></tr>
<tr class="separator:a807bea3f5ad545a3da470c4e56acc540"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae09f681a46de2f70a4c5a41b7bb9caf7" id="r_ae09f681a46de2f70a4c5a41b7bb9caf7"><td class="memItemLeft" align="right" valign="top"><a id="ae09f681a46de2f70a4c5a41b7bb9caf7" name="ae09f681a46de2f70a4c5a41b7bb9caf7"></a>
static <a class="el" href="class_t_font_manager.html">TFontManager</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const <a class="el" href="class_t_emitter.html">TEmitter</a> &amp;obj)</td></tr>
<tr class="separator:ae09f681a46de2f70a4c5a41b7bb9caf7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_class_t_emitter"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_static_methods_class_t_emitter')"><img src="closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="class_t_emitter.html">TEmitter</a></td></tr>
<tr class="memitem:a519410f20fbc260357c72f17fae29c61 inherit pub_static_methods_class_t_emitter" id="r_a519410f20fbc260357c72f17fae29c61"><td class="memItemLeft" align="right" valign="top">
static <a class="el" href="class_t_emitter.html">TEmitter</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (emitter_t *nativeObj)</td></tr>
<tr class="separator:a519410f20fbc260357c72f17fae29c61 inherit pub_static_methods_class_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ddf47a8480c17fdd0875da2d9a77ed9 inherit pub_static_methods_class_t_emitter" id="r_a9ddf47a8480c17fdd0875da2d9a77ed9"><td class="memItemLeft" align="right" valign="top">
static <a class="el" href="class_t_emitter.html">TEmitter</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const emitter_t *nativeObj)</td></tr>
<tr class="separator:a9ddf47a8480c17fdd0875da2d9a77ed9 inherit pub_static_methods_class_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70ef09f38ab28ee7cd4f1fddb2c5e450 inherit pub_static_methods_class_t_emitter" id="r_a70ef09f38ab28ee7cd4f1fddb2c5e450"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_t_emitter.html">TEmitter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_emitter.html#a70ef09f38ab28ee7cd4f1fddb2c5e450">Create</a> ()</td></tr>
<tr class="separator:a70ef09f38ab28ee7cd4f1fddb2c5e450 inherit pub_static_methods_class_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pub_attribs_class_t_emitter"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_attribs_class_t_emitter')"><img src="closed.png" alt="-"/>&#160;Public 属性 继承自 <a class="el" href="class_t_emitter.html">TEmitter</a></td></tr>
<tr class="memitem:a476ec4fc4b3a97af70c2d5e91df7a0cc inherit pub_attribs_class_t_emitter" id="r_a476ec4fc4b3a97af70c2d5e91df7a0cc"><td class="memItemLeft" align="right" valign="top">
emitter_t *&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a476ec4fc4b3a97af70c2d5e91df7a0cc inherit pub_attribs_class_t_emitter"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>字体管理器，负责字体的加载和缓存管理。 (如果使用nanovg，字体由nanovg内部管理) </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="ad73331695bdaf3ffbaec24d17dd67381" name="ad73331695bdaf3ffbaec24d17dd67381"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad73331695bdaf3ffbaec24d17dd67381">&#9670;&#160;</a></span>GetStandardFontSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TFontManager::GetStandardFontSize </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取是否使用标准字号</p>
<dl class="section return"><dt>返回</dt><dd>返回TRUE表示使用标准字号，否则表示不是。 </dd></dl>

</div>
</div>
<a id="a0b3a2932d8278a08adfd5525a78a2e68" name="a0b3a2932d8278a08adfd5525a78a2e68"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b3a2932d8278a08adfd5525a78a2e68">&#9670;&#160;</a></span>SetStandardFontSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TFontManager::SetStandardFontSize </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>is_standard</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置是否使用标准字号</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">is_standard</td><td>是否使用标准字号</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aa4cffca713fa0189985928ba83c86cdb" name="aa4cffca713fa0189985928ba83c86cdb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4cffca713fa0189985928ba83c86cdb">&#9670;&#160;</a></span>ShrinkCache()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TFontManager::ShrinkCache </td>
          <td>(</td>
          <td class="paramtype">uint32_t</td>          <td class="paramname"><span class="paramname"><em>cache_size</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>清除最久没有被使用的缓冲字模。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">cache_size</td><td>每种字体保留缓存字模的个数。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a76e951191090aa518b07594095baf8e5" name="a76e951191090aa518b07594095baf8e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76e951191090aa518b07594095baf8e5">&#9670;&#160;</a></span>UnloadAll()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TFontManager::UnloadAll </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>卸载全部字体。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a8bfab6af70f1362d3b6abaa38af177f0" name="a8bfab6af70f1362d3b6abaa38af177f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8bfab6af70f1362d3b6abaa38af177f0">&#9670;&#160;</a></span>UnloadFont()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TFontManager::UnloadFont </td>
          <td>(</td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>name</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">font_size_t</td>          <td class="paramname"><span class="paramname"><em>size</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>卸载指定的字体。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>字体名，为NULL时使用缺省字体。 </td></tr>
    <tr><td class="paramname">size</td><td>字体的大小(矢量字体指定为0即可)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/<b>awtk_cpp.cpp</b></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2
</small></address>
</div><!-- doc-content -->
</body>
</html>
